import {
    SHOPSTATUSDIC
} from '@/const/shopStatusDic'
export const shopFloorOption = {
    border: true,
    index: true,
    indexLabel: '序号',
    selection: true,
    columnBtn: false,
    refreshBtn: false,
    addBtn: false,
    delBtn: false,
    editBtn: false,
    menuWidth: 300,
    menuAlign: 'center',
    formWidth: '100%',
    align: 'center',
    stripe: true,
    dicData: SHOPSTATUSDIC,
    column: [
        {
            label: "编号",
            prop: "id",
            width: "150",
            hide: true,
            display: false,
            rules: [{
                required: true,
                message: "请输入编号",
                trigger: "blur"
            }]
        },
        /**名称*/
        {
            label: "名称",
            prop: "title",
            width: "150",
            labelWidth: 120,
            rules: [{
                required: true,
                message: "名称",
                trigger: "blur"
            }]
        },
        /**类型*/
        {
            label: "类型",
            prop: "type",
            hide: true,
            labelWidth: 120,
            rules: [{
                required: true,
                message: "类型",
                trigger: "blur"
            }]
        },
        /**上级ID*/
        {
            label: "上级ID",
            prop: "pId",
            hide: true,
            labelWidth: 120,
            rules: [{
                required: true,
                message: "上级ID",
                trigger: "blur"
            }]
        },
        /**分类列表*/
        {
            label: "分类列表",
            prop: "gcList",
            width: "150",
            labelWidth: 120,
            type: 'tree',
            // multiple: true,
            dicUrl: 'http://127.0.0.1:8087/shopClass/treeList',
            dicData: 'gcList',
            props: {
                label: "className",
                value: "id",
                children: "children"
            },
            rules: [{
                required: true,
                message: "分类列表",
                trigger: "blur"
            }]
        },
        /**分类商品列表*/
        {
            label: "分类商品列表",
            prop: "gdGcList",
            width: "150",
            labelWidth: 120,
            type: 'tree',
            // multiple: true,
            dicUrl: 'http://127.0.0.1:8087/shopClass/treeList',
            dicData: 'gdGcList',
            props: {
                label: "className",
                value: "id",
                children: "children"
            },
            rules: [{
                required: true,
                message: "分类商品列表",
                trigger: "blur"
            }]
        },
        /**排行列表*/
        {
            label: "排行列表",
            prop: "gdRkList",
            width: "150",
            labelWidth: 120,
            type: 'tree',
            // multiple: true,
            dicUrl: 'http://127.0.0.1:8087/shopClass/treeList',
            dicData: 'gdRkList',
            props: {
                label: "className",
                value: "id",
                children: "children"
            },
            rules: [{
                required: true,
                message: "排行列表",
                trigger: "blur"
            }]
        },
        /**样式*/
        {
            label: "样式",
            prop: "css",
            width: "150",
            labelWidth: 120,
            rules: [{
                required: true,
                message: "样式",
                trigger: "blur"
            }]
        },
        /**是否显示*/
        {
            label: "是否显示",
            prop: "display",
            width: "150",
            labelWidth: 120,
            type: 'switch',
            dicData:SHOPSTATUSDIC.RECOMMEND,
            rules: [{
                required: true,
                message: "是否显示",
                trigger: "blur"
            }]
        },
        /**商品数量*/
        {
            label: "商品数量",
            prop: "goodsCount",
            width: "150",
            labelWidth: 120,
            rules: [{
                required: true,
                message: "商品数量",
                trigger: "blur"
            }]
        },
        /**排序*/
        {
            label: "排序",
            prop: "sequence",
            width: "150",
            labelWidth: 120,
            hide: true,
            rules: [{
                required: true,
                message: "排序",
                trigger: "blur"
            }]
        },
        /**左边广告*/
        {
            label: "左边广告",
            prop: "leftAdv",
            width: "150",
            labelWidth: 120,
            hide: true,
            rules: [{
                required: true,
                message: "左边广告",
                trigger: "blur"
            }]
        },
        /**右边广告*/
        {
            label: "右边广告",
            prop: "rightAdv",
            width: "150",
            labelWidth: 120,
            hide: true,
            rules: [{
                required: true,
                message: "右边广告",
                trigger: "blur"
            }]
        },
        /**品牌列表*/
        {
            label: "品牌列表",
            prop: "gfBrandList",
            width: "150",
            labelWidth: 120,
            hide: true,
            rules: [{
                required: true,
                message: "品牌列表",
                trigger: "blur"
            }]
        },
    ]

};

